|
|
|
|
|
|
|
Figure 16.17
Phong shading of a sphere containing 10,000 polygons. |
|
|
|
|
|
|
|
|
Example program PZOrder, shown in Figure 16.18, displays surfaces with Phong shading. The edges between polygons are much less obvious than they are in the image produced by Gouraud shading shown in Figure 16.15. The specular highlights are also |
|
|
|
|
|
|
|
|
Figure 16.18
Program PZOrder displaying a surface with Phong shading. |
|
|
|
|
|